= error_messages_for("user")
- if is_superadmin?
  - form_tag({ :controller => "users", :action => :update, :id => @user.id }, { :method => :put }) do
    %h3 User information
    %table
      %tr
        %td Name
        %td= text_field("user", "name", { :size => 40 })
      %tr
        %td Password
        %td= text_field("user", "password", { :size => 40, :value => "" })
      %tr
        %td Rank
        %td= select("user", "rank", [["Superadmin", 1], ["Officer", 2], ["Member", 3]])
      %tr
        %td
        %td= submit_tag("Update")
- else
  - form_tag({ :controller => "users", :action => :update, :id => @logged_in_user.id }, { :method => :put }) do
    %table
      %tr
        %td Password
        %td= password_field("user", "password", { :size => 40 })
      %tr
        %td
        %td= submit_tag("Update")

%h3 Characters
%table
  %tr
    = render(:partial => @user.character, :locals => { :character => @user.character })
